<?php echo $this->Html->css(array(HOST.'/form'),null,array('inline'=>false));?>
<body>
<?php echo $this->Section->main(); ?>
<div class="container_4">

	<div class="grid_1">
		<div class="logo"><?php echo $this->Html->link($this->Html->image(HOST.'/logo.png'),'/',array('escape'=>false));?></a></div>
	</div>
	<div class="grid_3">
		<?php echo $this->element('menu-top')?>
	</div>
	
	<div class="clear"> </div>
	
	<div class="grid_4 header-small">
	</div>
	
	<div class="clear"> </div>
	
	<div class="grid_4 white padding_top_bottom">
		<div class="content">
	

				<?php echo $this->Html->css(array(HOST.'/form'),null,array('inline'=>false));?>
				
				<?php if($session->check("Auth.User.id")){?>
				<h2 class="red"><?php __d("store","Logout")?></h2>
				<?php echo $session->read("Auth.User.email")?> | 
				<?php echo $html->link(__d("store","Logout",true),array('plugin'=>false,'controller'=>'users','action'=>'logout'),array('class'=>'button'));?>
				<?php }else{?>
				<h2 class="red"><?php __d("store","Login")?></h2>
				<div class="text-content">
					<?php echo $this->Form->create('User', array('url' => array('controller' => 'users', 'action' =>'login')));?>
					<div class="one-third-col">
							<div class="input text required">
								<label for="senderFirstName">Email</label>
								<input type="text" name="data[User][email]" class="required alpha" value="" />
							</div>

						<div class="input text required">
								<label for="senderFirstName">Password</label>
								<input type="password" name="data[User][password]" class="required alpha" value="" />
						</div>
						<?php echo $html->link(__d("store","Forgot your password?",true),array('controller'=>'users','action'=>'new_password',$this->data['User']['id']));?>
						<div id="submit">
						<input type="submit" value="Login"/>
						</div>
					</div>
					<?php echo $this->Form->end();?>
				</div>
				<?php }?>
			</div>
				
	</div>
	
	<div class="clear"> </div>

	<?php echo $this->element('footer');?>
	
</div>
</body>

